namespace CapstoneMockup.Data
{
    public class Expense
    {
        public string Description { get; private set; }
        public double Amount { get; private set; }
        public string AccountNumber { get; private set; }
        public string PlaceOfPurchase { get; private set; }
        
        public Expense(string description, double amount, string accountNumber = "", string placeOfPurchase = "")
        {
            Description = description;
            Amount = amount;
            AccountNumber = accountNumber;
            PlaceOfPurchase = placeOfPurchase;
        }

        public override string ToString()
        {
            return PlaceOfPurchase + ": " + Amount;
        }
    }
}
